package com.yylending.las.common.utils.area;

import com.yylending.las.common.widgets.pickerview.model.IPickerViewData;

import java.io.Serializable;
import java.util.List;

/**
 * Title: AddressBean Description: Company: YYLending(YouJingPuHui)
 * 
 * @author XiongYuFeng
 * date 2016年7月13日 下午6:19:20
 */
public class AddressCityBean implements IPickerViewData, Serializable {

	/**
	 * <p>
	 * Description:
	 * </p>
	 */
	private static final long serialVersionUID = 5166850928547491503L;
	private String areaId;
	public String areaCode;
	public String areaName;
	public List<AddressDistrictBean> counties;

	public String getPickerViewText() {
		// 这里还可以判断文字超长截断再提供显示
		return areaName;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public List<AddressDistrictBean> getCounties() {
		return counties;
	}

	public void setCounties(List<AddressDistrictBean> counties) {
		this.counties = counties;
	}

	public AddressCityBean(String name, List<AddressDistrictBean> counties) {
		super();
		this.areaName = name;
		this.counties = counties;
	}

	public AddressCityBean() {
		super();
	}

	@Override
	public String toString() {
		return "AddressCityBean{" +
				"areaId='" + areaId + '\'' +
				", areaName='" + areaName + '\'' +
				", counties=" + counties +
				'}';
	}
}
